<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Thymeleaf入门模板页面</title>
</head>
<body>
    欢迎<span th:text="${username}"></span>   访问本网站，乐趣无穷 <br/>

    <input type="text" name="birth" th:value="${#dates.format(birthday,'yyyy-MM-dd')}" />  <br/>

    <input type="text" name="msg" th:value="${#strings.substring(msg,0,6)}"/>  <br/>
    <div th:if="${sex}=='男'">
        性别：男
    </div>
    <div th:if="${sex}=='女'">
        性别：女
    </div>

    <div th:each="str:${list}">
        <span th:text="${str}"></span>
    </div>

    <a th:href="@{/demo/name/{id}(id=1)}">入门demo</a>
</body>
</html>
